package com.doitedu.day04.funcs

/**
 * @Date 22.6.23
 * @Created by HANGGE
 * @Description
 */
object _11Take {
  def main(args: Array[String]): Unit = {

    val array = Array[Int](1,1,2,3,4,5,6,22,33 , 1)
    println(array.takeRight(3).toList)

    val res = array.takeWhile(_ < 3)
    println(res.toList)

    /*val ints: Array[Int] = array.take(3)
    println(ints.toList)*/


  }

}
